package cn.flymod.DHG_mcpePlusEX;

import android.app.*;
import android.content.*;
import android.net.*;
import android.os.*;
import android.view.*;
import android.view.View.*;
import android.widget.*;

public class a_mcpe extends Activity
{
    /** Called when the activity is first created. */
    @Override
	TextView activitymcpeTextView2,activitymcpeTextView3;
	Button activitymcpeButton1,activitymcpeButton3,activitymcpeButton4;
	
    public void onCreate(Bundle savedInstanceState)
	{
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mcpe);
		
		getActionBar().setDisplayHomeAsUpEnabled(true);
		
		activitymcpeTextView2=(TextView)findViewById(R.id.activitymcpeTextView2);
		activitymcpeButton1=(Button)findViewById(R.id.activitymcpeButton1);
		activitymcpeButton3=(Button)findViewById(R.id.activitymcpeButton3);
		activitymcpeButton4=(Button)findViewById(R.id.activitymcpeButton4);

		activitymcpeTextView2.setText("Mojang作品:我的世界pe(當個創世神pe),持续更新!(请支持并购买正版!)");
		activitymcpeButton1.setText("破解版");
		activitymcpeButton3.setText("去Google Play商店购买正版");
		activitymcpeButton4.setText("视频教程 - 远程服务器联机的方法");
		
        activitymcpeButton1.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Uri uri= Uri.parse("http://pan.baidu.com/share/link?shareid=1967270778&uk=2869900060");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
		activitymcpeButton3.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Uri uri= Uri.parse("https://play.google.com/store/apps/details?id=com.mojang.minecraftpe&feature=top-paid#?t=W251bGwsMSwxLDIwNiwiY29tLm1vamFuZy5taW5lY3JhZnRwZSJd");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
		activitymcpeButton4.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Toast.makeText(getApplicationContext(),"FLY_MOD录制 请自行下载观看",Toast.LENGTH_LONG).show();
					Uri uri= Uri.parse("http://pan.baidu.com/share/link?shareid=2316177621&uk=2470387536");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
    }
}
